//1.引入Vue
import Vue from "vue";

//2.引入VueRouter
import VueRouter from "vue-router";

//引入组件
import Login from "../pages/login.vue"
import Home from "../pages/home.vue"

//3.使用插件
Vue.use(VueRouter);

//4.创建路由器对象
export default new VueRouter({
    //在路由器对象中配置路由表
    routes:[
        {path:"/login" , component: Login},
        {path:"/home" , component: Home},
    ]
})